import request from '../utils/request'

export const queryDeptHasCount = () => {
    return request({
      url: '/department/queryDeptHasCount',
      method: 'get',
    });
}


//根据条件查询所有的数据
export const queryAllDeptByCondition = (current,size,name) => {
  return request({
    url: '/department/queryAllDeptByCondition',
    method: 'get',
    params: {
      current,
      size,
      name
    }
  });
}

//删除dept功能
export const deleteDeptById = (id) => {
  return request({
    url: '/department/deleteDeptById',
    method: 'get',
    params: {
      id
    }
  });
}

//根据id查询一个dept
export const queryDeptById = (id) => {
  return request({
    url: '/department/queryDeptById',
    method: 'get',
    params: {
      id
    }
  });
}



